package org.jeecg.modules.business.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.business.dto.CouponsGenerateDto;
import org.jeecg.modules.business.entity.BusMarketMealCouponsUsed;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.business.vo.MealCouponStatVo;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description: bus_market_meal_coupons_used
 * @Author: jeecg-boot
 * @Date:   2023-03-14
 * @Version: V1.0
 */
public interface IBusMarketMealCouponsUsedService extends IService<BusMarketMealCouponsUsed> {
    /**
     * 生成餐券领取使用
     * @param dto
     * @return
     */
    public Result generate(CouponsGenerateDto dto) ;
    /**
     * 已核销餐券列表
     * @param hotelId
     * @param type
     * @return
     */
    public Page<BusMarketMealCouponsUsed> verifyList(Page<BusMarketMealCouponsUsed> page, String hotelId, String type);

    /**
     * 统计
     * @param hotelId
     * @return
     */
    public MealCouponStatVo stat(String hotelId,String type);
}
